<template>
  <div>
    <!-- 头部组件 -->
    <my-header></my-header>

    <!-- 主体区域 -->
    <div class="home-main-box">
      <!-- 左侧边栏区域 -->
      <my-aside></my-aside>

      <!-- 右侧内容主体区域 -->
      <div class="home-main-body">
        <!-- 路由占位符 -->
        <router-view></router-view>
      </div>
    </div>
  </div>
</template>

<script>
import MyHeader from '../subcomponents/MyHeader.vue'
import MyAside from '../subcomponents/MyAside.vue'

export default {
  name: 'Home',
  components: { MyHeader, MyAside }
}
</script>

<style lang="less" scoped>
.home-container {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.home-main-box {
  height: 100%;
  display: flex;
  .home-main-body {
    padding: 50px 15px 0px;
    flex: 1;
  }
}
</style>